<!doctype html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<body th:fragment="tpl-menu" th:remove="tag">
<ul class="sidebar-nav" th:class="'sidebar-nav '+${subclass}">
    <li th:each="menuVO : ${menuVO.subs}" class="sidebar-nav-link">
        <a th:href="${ #lists.isEmpty( menuVO.subs)}?${menuVO.sysMenu.menuUrl}:'javascript:void(0)'"
           th:class="${ #lists.isEmpty( menuVO.subs)}?${'menu-item menu-'+menuVO.sysMenu.menuCode}:'sidebar-nav-sub-title'">
            <i th:class="${'am-icon-'+menuVO.sysMenu.menuIcon+' sidebar-nav-link-logo'}"
               class="am-icon-user sidebar-nav-link-logo"></i>
            <span th:text="${menuVO.sysMenu.menuName}">menu</span>
            <span th:if="${not #lists.isEmpty( menuVO.subs)}"
                  class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
        </a>
        <div
                th:if="${not #lists.isEmpty( menuVO.subs)}"
                th:with="menuVO = ${menuVO},subclass='sidebar-nav-sub am-collapse am-in'"
                th:include="framework/tpl/tpl-menu :: tpl-menu" th:remove="tag"/>
    </li>
</ul>
</body>
